package io.renren.modules.wcs.bean;

import com.sun.jna.WString;
import io.renren.modules.ioserver.IOServerService;
import org.springframework.stereotype.Component;

import java.util.Vector;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/14 9:23
 * @Version 1.0
 */
@Component
public class IOServerBean {
    IOServerService ioServerService = new IOServerService();

    public com.ioserver.bean.Union_DataType.ByValue getValueByName(String tagNameArg) throws Exception{
        return ioServerService.getValueByName(tagNameArg);
    }


    public Integer setTagValue(String tagName, String tagValue, int type) throws Exception {
        return ioServerService.setTagValue(tagName,tagValue,type);
    }

    public Vector<WString> getAllTagName() throws Exception {
        return ioServerService.getAllTagName();
    }
}
